#pragma once

#include <wx/taskbar.h>

class MainFrame;
class wxMenu;
class ThemeManager;


class TaskBarIcon : public wxTaskBarIcon {
public:
	TaskBarIcon(MainFrame* p_parent);
	
	virtual wxMenu* CreatePopupMenu();
	
	virtual ~TaskBarIcon() {}

	void OnShowMainWnd(wxCommandEvent& event);
	void OnExitMainWnd(wxCommandEvent& event);
	void OnClick(wxTaskBarIconEvent& event);

	enum {
	    ID_SHOW_MAINWND = 10001,
	    ID_EXIT_MAINWND,
	};
	
protected:
	
	void InitEvents();
	
	ThemeManager* _p_thememgr;
	
	MainFrame* _p_parent;
};
